/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
import org.intellij.lang.regexp.RegExpElementTypes;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.intellij.lang.regexp.psi.RegExpOptions;
import org.intellij.lang.regexp.psi.RegExpSetOptions;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class RegExpSetOptionsImpl
/* 12:   */   extends RegExpElementImpl
/* 13:   */   implements RegExpSetOptions
/* 14:   */ {
/* 15:   */   public RegExpSetOptionsImpl(ASTNode paramASTNode)
/* 16:   */   {
/* 17:28 */     super(paramASTNode);
/* 18:   */   }
/* 19:   */   
/* 20:   */   public RegExpOptions getOnOptions()
/* 21:   */   {
/* 22:32 */     ASTNode[] arrayOfASTNode1 = getNode().getChildren(TokenSet.create(new IElementType[] { RegExpElementTypes.OPTIONS }));
/* 23:33 */     for (ASTNode localASTNode : arrayOfASTNode1) {
/* 24:34 */       if (!localASTNode.textContains('-')) {
/* 25:35 */         return (RegExpOptions)localASTNode.getPsi();
/* 26:   */       }
/* 27:   */     }
/* 28:38 */     return null;
/* 29:   */   }
/* 30:   */   
/* 31:   */   public RegExpOptions getOffOptions()
/* 32:   */   {
/* 33:42 */     ASTNode[] arrayOfASTNode1 = getNode().getChildren(TokenSet.create(new IElementType[] { RegExpElementTypes.OPTIONS }));
/* 34:43 */     for (ASTNode localASTNode : arrayOfASTNode1) {
/* 35:44 */       if (localASTNode.textContains('-')) {
/* 36:45 */         return (RegExpOptions)localASTNode.getPsi();
/* 37:   */       }
/* 38:   */     }
/* 39:48 */     return null;
/* 40:   */   }
/* 41:   */   
/* 42:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 43:   */   {
/* 44:52 */     paramRegExpElementVisitor.visitRegExpSetOptions(this);
/* 45:   */   }
/* 46:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpSetOptionsImpl

 * JD-Core Version:    0.7.0.1

 */